﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Recenthistory.ascx.cs" Inherits="GoShopping.Web.UserControls.Recenthistory" %>
<style type="text/css">
     
    
</style>
<asp:UpdatePanel ID="up1" runat="server">
<ContentTemplate>
<table  cellpadding="0" cellspacing="0" border="0" width="994px"  >
    <tr>
        <td colspan="6" style=" height:24px; font-size:9pt;  background-image:url('<%=this.ResolveUrl("~/Images/Recenthistory/view.gif")%>'); background-repeat:no-repeat;  text-align:left; vertical-align:middle;">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您最近浏览的商品 <br />
        </td>
    </tr>
    <tr>
        <td style=" height:180px; width:400px; background-image:url('<%=this.ResolveUrl("~/Images/Recenthistory/ver-2.gif")%>'); background-repeat:repeat-y;" rowspan="3">
            <asp:ListView ID="lvRecent" runat="server" GroupItemCount="4">
            <GroupTemplate>
                <tr>
                    <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                </tr>
            </GroupTemplate>
            <LayoutTemplate>                        
                <table style="height:180px">
                    <asp:PlaceHolder ID="groupPlaceholder" runat="server" />
                </table>
                <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvRecent" Visible="false"  PageSize="4">
                    <Fields>
                        <asp:NumericPagerField />
                    </Fields>
                </asp:DataPager>
            </LayoutTemplate>
            <ItemTemplate>
                <td valign="top" style="font-size:9pt">
                    <a href='<%# "CommonProducts.aspx?prdtId="+Eval("RecentId") %>'><asp:Image ID="imgPrdt" runat="server" ImageUrl='<%# Eval("Src")%>' style="width:100px; height:120px" /></a>
                    <br />
                    <asp:HyperLink ID="hlPrdt" runat="server" NavigateUrl='<%# "~/CommonProducts.aspx?prdtId="+Eval("RecentId") %>'> <%# Eval("RecentName") %> </asp:HyperLink><br />
                    <%--<asp:HyperLink ID="hlBrand" runat="server"><%# Eval("Brand")%></asp:HyperLink>--%>
                    GS价:<asp:Label ID="lblSaledPrice" runat="server" Text='<%# Eval("recentPrice") %>'></asp:Label>
                </td>
            </ItemTemplate>
            <EmptyDataTemplate>
            非常抱歉,没有找到您需要的产品!
            </EmptyDataTemplate>
            <EmptyItemTemplate>
            </EmptyItemTemplate>
        </asp:ListView>       
        </td>
        <td style=" width:34px; ">
            <asp:ImageButton id="top1" ImageUrl="~/Images/Recenthistory/top.gif"  
                runat="server" onclick="top1_Click"/>
            <%--<img id="top1" alt="" src="~/Images/Recenthistory/top.gif"  runat="server"/>--%></td>
        <td rowspan="3" style=" width:40px; background-image:url('<%=this.ResolveUrl("~/Images/Recenthistory/seper.gif")%>'); background-repeat:repeat-y; background-position:center; ">
            &nbsp;</td>
        <td rowspan="3" style=" width:36px; ">
            <asp:ImageButton id="left" ImageUrl="~/Images/Recenthistory/left.gif"  
                runat="server" onclick="left_Click"/>
            <%--<img id="left" alt="" src="~/Images/Recenthistory/left.gif" runat="server"/>--%></td>
        <td rowspan="3">
        <asp:ListView ID="lvPrdts" runat="server" GroupItemCount="4">
            <GroupTemplate>
                <tr>
                    <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                </tr>
            </GroupTemplate>
            <LayoutTemplate>                        
                <table style="height:180px">
                    <asp:PlaceHolder ID="groupPlaceholder" runat="server" />
                </table>
                <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvPrdts" Visible="false"  PageSize="4">
                    <Fields>
                        <asp:NumericPagerField />
                    </Fields>
                </asp:DataPager>
            </LayoutTemplate>
            <ItemTemplate>
                <td  valign="top" style="font-size:9pt">
                    <a href='<%# "CommonProducts.aspx?prdtId="+Eval("Id") %>'><asp:Image ID="Image1" runat="server" style="width:100px; height:120px" ImageUrl='<%#Eval("Src") %>' /></a>
                    <br />
                    <asp:HyperLink ID="hlFav" runat="server" NavigateUrl='<%# "~/CommonProducts.aspx?prdtId="+Eval("Id") %>' Text='<%# Eval("Name") %>'></asp:HyperLink>
                    <%--<asp:LinkButton ID="btnPrdtID" runat="server" CommandArgument='<%# Eval("Id") %>' CommandName="Prdt" Text='<%# Eval("Name") %>'>商品名称</asp:LinkButton>           --%>
                    <br />                  
<%--                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("BriefIntroduction") %>'></asp:Label>
                    <br />
                    市场价:<asp:Label ID="lblMarketPrice" runat="server" Text='<%# Eval("PriceMarket") %>'></asp:Label>
                    <br />--%>
                    GS价:<asp:Label ID="lblSaledPrice" runat="server" Text='<%# Eval("Price") %>'></asp:Label>
                </td>
            </ItemTemplate>
            <EmptyDataTemplate>
            非常抱歉,没有找到您需要的产品!
            </EmptyDataTemplate>
            <EmptyItemTemplate>
            </EmptyItemTemplate>
        </asp:ListView>
        </td>
        <td rowspan="3" style=" width:57px; background-image:url('<%=this.ResolveUrl("~/Images/Recenthistory/ver-2.gif")%>'); background-repeat:repeat-y;  background-position:right;">
            <%--<img  id="right1" alt="" src="~/Images/Recenthistory/right.gif" runat="server"/>--%>
            <asp:ImageButton id="right1" ImageUrl="~/Images/Recenthistory/right.gif" runat="server" onclick="right1_Click"/></td>
    </tr>
    <tr>
        <td style=" width:34px;">
            &nbsp;</td>
    </tr>
    <tr>
        <td style=" width:34px; ">
            <asp:ImageButton id="down1" ImageUrl="~/Images/Recenthistory/down.gif"  
                runat="server" onclick="down1_Click"/>
           <%--<img id="down1" alt="" src="~/Images/Recenthistory/down.gif"  runat="server"/>--%></td>
    </tr>
    <tr>
        <td colspan="6" 
            style="background-image:url('<%=this.ResolveUrl("~/Images/Recenthistory/hr-2.gif")%>'); background-repeat:repeat-x; background-position:top; height:2px; ">
        
        </td>
    </tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>